package com.yami.shop.combo.multishop.param;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author
 * @date 2019/9/23 19:01
 */
@Data
@Schema(description ="用户勾选套餐信息")
public class CalculateComboParam implements Serializable {

    @NotNull(message = "套餐id不能为空")
    @Schema(description = "套餐id")
    private Long comboId;

    @NotNull(message = "主商品id不能为空")
    @Schema(description = "主商品id")
    private Long prodId;

    @NotNull(message = "主商品sku id不能为空")
    @Schema(description = "主商品Sku id")
    private Long skuId;

    @Schema(description = "搭配商品Sku id列表")
    private List<Long> matchingSkuIds;

    @Schema(description = "搭配商品id列表")
    private List<Long> matchingProdIds;

    @NotNull(message = "套餐数量不能为空")
    @Schema(description = "套餐数量")
    private Integer comboNum;
}
